Skip to content

Delete publishing_api_finder_publisher.rb#3605

Merged
emmalowe merged 1 commit intomainfrom
remove-publishing-api-finder-publisher
Apr 29, 2026
Merged

Delete publishing_api_finder_publisher.rb#3605
emmalowe merged 1 commit intomainfrom
remove-publishing-api-finder-publisher

Conversation

@emmalowe
Copy link
Copy Markdown
Contributor

@emmalowe emmalowe commented Apr 28, 2026

Classes in this file are no longer referenced in search-api and can be removed. They used to be used in a rake task that published the "advanced search finder" until this was updated to be published in the same way as other finders [1][2].

The deprecated rake task used a class called
PublishingApiFinderPublisher that was removed [3] but the other classes in this file that PublishingApiFinderPublisher referenced were not deleted at that time. This is overdue clean up.

[1] #1492
[2] https://github.com/alphagov/search-api/blob/main/lib/tasks/publishing_api.rake#L10
[3] #1967

@emmalowe emmalowe marked this pull request as ready for review April 28, 2026 17:39
Copy link
Copy Markdown
Contributor

@hannako hannako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent detective work!

For posterity, could you add some additional information to the PR description.

#1967 to give context to the commit I think would be helpful.

And then could you link to https://github.com/alphagov/search-api/blob/main/lib/tasks/publishing_api.rake#L10 which eventually calls https://github.com/alphagov/search-api/blob/main/lib/content_item_publisher/finder_presenter.rb#L2 as the route to publish finders from this application.

Classes in this file are no longer referenced in search-api
and can be removed. They used to be used in a rake task
that published the "advanced search finder" until this was
updated to be published in the same way as other finders [1][2].

The deprecated rake task used a class called
PublishingApiFinderPublisher that was removed [3] but the
other classes in this file that PublishingApiFinderPublisher
referenced were not deleted at that time. This is overdue
clean up.

[1] #1492
[2] https://github.com/alphagov/search-api/blob/main/lib/tasks/publishing_api.rake#L10
[3] #1967
@emmalowe emmalowe force-pushed the remove-publishing-api-finder-publisher branch from 26e9fef to 54a1ca8 Compare April 29, 2026 11:39
@emmalowe
Copy link
Copy Markdown
Contributor Author

#1967 to give context to the commit I think would be helpful.

Thanks @hannako - I struggled to find the PR that the commit was part of! ⭐

@emmalowe emmalowe merged commit 7604595 into main Apr 29, 2026
7 checks passed
@emmalowe emmalowe deleted the remove-publishing-api-finder-publisher branch April 29, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants